package com.study.entity.animal;

import lombok.Data;

//狗类
@Data
public class Animal {
    //品种
    String breed;
    //大中小
    String size;
    //颜色
    String colour;
    //年龄
    int age;
    //名字
    String name;

    public void eat(String food) {
        System.out.println(name + "吃吃吃...吃了" + food);
    }

    public void run(String length) {
        System.out.println(name + "跑跑跑...跑了" + length + "公里");
    }

    public void sleep(String time){
        System.out.println(name + "睡睡睡...睡了" + time + "分钟");
    }
}
